package com.gaogzhen.feign;

import com.gaogzhen.config.feign.OAuth2FeignConfig;
import com.gaogzhen.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description
 * @date 2022-11-28 12:11
 */
@FeignClient(name = "admin-service", path = "/adminBanks", configuration = OAuth2FeignConfig.class)
public interface AdminBankServiceFeign {
    /**
     * 获取所有银行卡
     * @return 银行卡集合
     */
    @GetMapping("/list")
    List<AdminBankDto> getAllAdminBanks();
}
